Class IndexedHeapNode
java.lang.Object
edu.claflin.finder.algo.clustering.struct.fast_greedy_struct.HeapNodeFG
edu.claflin.finder.algo.clustering.struct.fast_greedy_struct.IndexedHeapNode
- All Implemented Interfaces:
Comparable<HeapNodeFG>
- Author:
- Cesar Martin
-
Field Summary
FieldsFields inherited from class edu.claflin.finder.algo.clustering.struct.fast_greedy_struct.HeapNodeFG
EPSILON -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class edu.claflin.finder.algo.clustering.struct.fast_greedy_struct.HeapNodeFG
compareToQ, getJ, getQ, setInfo, setJ, setQ
-
Field Details
-
i
private int i
-
-
Constructor Details
-
IndexedHeapNode
public IndexedHeapNode(int i, int j, double q)
-
-
Method Details
-
getI
public int getI()- Returns:
- the i
-
setI
public void setI(int i) -
setInfo
public void setInfo(int i, int j, double q) -
equals
- Overrides:
equalsin classHeapNodeFG
-
compareTo
Description copied from class:HeapNodeFGCompare this HeapNode to that HeapNode. We want before means higher Q, then smaller j- Specified by:
compareToin interfaceComparable<HeapNodeFG>- Overrides:
compareToin classHeapNodeFG- Parameters:
that- the HeapNode to compare this to- Returns:
- -1 if this goes before, 0 if they are equal, 1 if that goes before
-
toString
- Overrides:
toStringin classHeapNodeFG
-